package com.yy.wga.goods.feign.request;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class SharerProductSetCommissionReq {


    /**
     * 商品Id
     */
    @NotBlank(message = "商品Id不能为空")
    private String spuId;

    /**
     * 10 0000  表示10%
     */
    @Range(min = 0, max = 1000000, message = "佣金率范围在0-1000000之间")
    @NotNull(message = "佣金率不能为空")
    private Integer commissionRatio;
}
